export const CommonSystemName = '/common-system'
export const HomeName = `${CommonSystemName}/home`
export default [
  {
    title: '通用系统',
    icon: '',
    name: CommonSystemName,
    path: '',
    menu: false,
    view: '',
    visible: true,
    full: false,
    permission: 'CommonSystem',
    children: [
      {
        title: '主页',
        icon: 'EpHouse',
        name: HomeName,
        path: HomeName,
        menu: true,
        view: 'HomeView',
        visible: true,
        full: false,
        permission: 'CommonSystem.Home',
        children: []
      },
      {
        title: '可视化大屏',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/data-screen`,
        path: `${CommonSystemName}/data-screen`,
        menu: true,
        view: 'data-screen/DataScreenView',
        visible: true,
        full: true,
        permission: 'CommonSystem.DataScreen',
        children: []
      },
      {
        title: '系统管理',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/system-manager`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'CommonSystem.SystemManager',
        children: [
          {
            title: '用户列表',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/system-manager/user-list`,
            path: `${CommonSystemName}/system-manager/user-list`,
            menu: true,
            view: 'user/UserView',
            visible: true,
            full: false,
            permission: 'CommonSystem.SystemManager.Rbac.User',
            children: []
          },
          {
            title: '用户新增',
            icon: '',
            name: `${CommonSystemName}/system-manager/user-add`,
            path: `${CommonSystemName}/system-manager/user-add`,
            menu: false,
            view: 'user/UserAddView',
            visible: true,
            full: false,
            permission: 'CommonSystem.SystemManager.Rbac.User.Write',
            children: []
          },
          {
            title: '用户编辑',
            icon: '',
            name: `${CommonSystemName}/system-manager/user-edit`,
            path: `${CommonSystemName}/system-manager/user-edit`,
            menu: false,
            view: 'user/UserEditView',
            visible: true,
            full: false,
            permission: 'CommonSystem.SystemManager.Rbac.User.Write',
            children: []
          },
          {
            title: '角色列表',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/system-manager/role-list`,
            path: `${CommonSystemName}/system-manager/role-list`,
            menu: true,
            view: 'role/RoleView',
            visible: true,
            full: false,
            permission: 'CommonSystem.SystemManager.Rbac.Role',
            children: []
          },
          {
            title: '权限列表',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/system-manager/permission-list`,
            path: `${CommonSystemName}/system-manager/permission-list`,
            menu: true,
            view: 'permission/PermissionView',
            visible: true,
            full: false,
            permission: 'CommonSystem.SystemManager.Rbac.Permission',
            children: []
          }
        ]
      },
      {
        title: '内容管理',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/cms`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'Cms',
        children: [
          {
            title: '栏目管理',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/cms/column-list`,
            path: `${CommonSystemName}/cms/column-list`,
            menu: true,
            view: 'column/ColumnView',
            visible: true,
            full: false,
            permission: 'Cms.Column',
            children: []
          },
          {
            title: '分类管理',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/cms/category-list`,
            path: `${CommonSystemName}/cms/category-list`,
            menu: true,
            view: 'category/CategoryView',
            visible: true,
            full: false,
            permission: 'Cms.Category',
            children: []
          },
          {
            title: '标签管理',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/cms/tag-list`,
            path: `${CommonSystemName}/cms/tag-list`,
            menu: true,
            view: 'tag/TagView',
            visible: true,
            full: false,
            permission: 'Cms.Tag',
            children: []
          },
          {
            title: '文章管理',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/cms/article-list`,
            path: `${CommonSystemName}/cms/article-list`,
            menu: true,
            view: 'article/ArticleView',
            visible: true,
            full: false,
            permission: 'Cms.Article',
            children: []
          }
        ]
      },
      {
        title: 'ECharts',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/echarts`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'ECharts',
        children: [
          {
            title: '常用组件说明',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/echarts/basic`,
            path: `${CommonSystemName}/echarts/basic`,
            menu: true,
            view: 'echarts/BasicView',
            visible: true,
            full: false,
            permission: 'ECharts.basic',
            children: []
          }
        ]
      },
      {
        title: '测试管理',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/test-manager`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'Test',
        children: [
          {
            title: '嵌套props对象',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/system-manager/nested-props`,
            path: `${CommonSystemName}/system-manager/nested-props`,
            menu: true,
            view: 'test/NestedPropsView',
            visible: true,
            full: false,
            permission: 'Test',
            children: []
          }
        ]
      },
      {
        title: 'formily',
        icon: 'GrommetIconsSystem',
        name: `${CommonSystemName}/formily`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'Test',
        children: [
          {
            title: 'helloword',
            icon: 'TablerPoint',
            name: `${CommonSystemName}/formily/helloword`,
            path: `${CommonSystemName}/formily/helloword`,
            menu: true,
            view: 'formily/HelloWorldView',
            visible: true,
            full: false,
            permission: 'Test',
            children: []
          }
        ]
      },
      {
        title: '系统消息',
        icon: 'EpBell',
        name: `${CommonSystemName}/notification`,
        path: `${CommonSystemName}/notification`,
        menu: false,
        view: 'notification/NotificationView',
        visible: true,
        full: false,
        permission: 'common-system.notification',
        children: []
      }
    ]
  },
  {
    title: '游戏系统',
    icon: '',
    name: '/game-system',
    path: '',
    menu: false,
    view: '',
    visible: true,
    full: false,
    permission: 'Game',
    children: [
      {
        title: '游戏测试',
        icon: 'GrommetIconsSystem',
        name: `/game-system/game-test`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'Game.Test',
        children: [
          {
            title: '第一个游戏',
            icon: 'TablerPoint',
            name: `/game-system/game-test/first-phaser-game`,
            path: `/game-system/game-test/first-phaser-game`,
            menu: true,
            view: 'test/FirstPhaserGameView',
            visible: true,
            full: true,
            permission: 'Game.Test.First',
            children: []
          }
        ]
      },
      {
        title: 'Three3D',
        icon: 'GrommetIconsSystem',
        name: `/game-system/three`,
        path: '',
        menu: true,
        view: '',
        visible: true,
        full: false,
        permission: 'Game.Three3D',
        children: [
          {
            title: '第一个3D',
            icon: 'TablerPoint',
            name: `/game-system/three/first-three`,
            path: `/game-system/three/first-three`,
            menu: true,
            view: 'test/FirstThreeView',
            visible: true,
            full: true,
            permission: 'Game.Three3D.First',
            children: []
          },
          {
            title: '绘制线条',
            icon: 'TablerPoint',
            name: `/game-system/three/drawing-lines`,
            path: `/game-system/three/drawing-lines`,
            menu: true,
            view: 'test/DrawingLinesView',
            visible: true,
            full: true,
            permission: 'Game.Three3D.DrawingLines',
            children: []
          }
        ]
      }
    ]
  },
  {
    title: '内容系统',
    icon: '',
    name: '/content-system',
    path: '',
    menu: false,
    view: '',
    visible: true,
    full: false,
    permission: 'content-system',
    children: []
  },
  {
    title: '电商系统',
    icon: '',
    name: '/mall-system',
    path: '',
    menu: false,
    view: '',
    visible: true,
    full: false,
    permission: 'mall-system',
    children: []
  }
] as const
